package com.padbot.qm.rest;

import java.io.Serializable;

import com.alibaba.fastjson.JSONObject;

public class ResponseResult implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2658718654493122531L;
	private String messageCode;
	private String messageText;
	
	private Object content;
	
	public ResponseResult(String messageCode, String messageText) {
		super();
		this.messageCode = messageCode;
		this.messageText = messageText;
	}

	public ResponseResult(String messageCode, String messageText, Object content) {
		super();
		this.messageCode = messageCode;
		this.messageText = messageText;
		this.content = content;
	}

	public String getMessageCode() {
		return messageCode;
	}

	public void setMessageCode(String messageCode) {
		this.messageCode = messageCode;
	}

	public String getMessageText() {
		return messageText;
	}

	public void setMessageText(String messageText) {
		this.messageText = messageText;
	}

	public Object getContent() {
		return content;
	}

	public void setContent(Object content) {
		this.content = content;
	}

	public ResponseResult() {
		// TODO Auto-generated constructor stub
	}
	
	public String toString(){
		return JSONObject.toJSONString(this);
	}

}
